package io.github.talelin.latticy.model;

import io.github.talelin.latticy.dto.receving.ReceivingRecordDTO;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;

/**
 * 入库收货记录表
 *
 * @author generator@wulongbo
 * @since 2022-07-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_receiving_base_info")
@NoArgsConstructor
public class ReceivingBaseInfoDO extends BaseModel {

    /**
     * 入库单编号
     */
    private String inboundOrderNo;

    /**
     * 转运物流单号
     */
    private String recordNo;

    /**
     * 备注
     */
    private String otherRemark;

    public ReceivingBaseInfoDO(ReceivingRecordDTO dto){
        BeanUtils.copyProperties(dto, this);
    }

}
